package com.ugood.utils;

import java.util.Arrays;
import java.util.List;


public class ConstUtils {
	
	
	//链上交易的 methodId
	public static final String TRANS_METHOD_TRANSFROM = "23b872dd";
	public static final String TRANS_METHOD_TRANSF = "a9059cbb";
	
	//区块同步是否完成
	public static final int BLOCK_ASYN_UNDONE = 1;
	public static final int BLOCK_ASYN_DONE = 2;
	
	
	//dataVersion对应的key
	public static final String VERSION_KEY_DEFAULT_ASSETS = "DEFAULT_SUPPORT_ASSETS";//默认支持币种
	
	//默认支持币种是否上架
	public static final int ONSHELF_YES = 0; 
	public static final int ONSHELF_NO = 1;
	
	//合约地址前缀
	public static final String PREFIX_0x = "0x";
	
	//发币代号集合
	public static final List<String> CURRENCY_LIST = Arrays.asList("CNY", "USD", "HKD");
	public static final String CNY = "CNY";
	public static final String USD = "USD";
	public static final String HKD = "HKD";
	
	//缓存
	public static final String COIN_CURRENT_PRICE = "coin_current_price@";//当前币价前缀
	public static final String RATE_CNY_VS_USD = "rate_cny_vs_usd";//人民币对美元的汇率
	public static final String RATE_CNY_VS_HKD = "rate_cny_vs_hkd";//人民币对港币的汇率
	
	
	
	//CMCID
	public static final String ETH_CMCID = "ethereum";//比特币的CMCID
	
	//合约地址
	public static final String ETH_ADDRESS = "0x0000000000000000000000000000000000000000";//ETH合约地址
	
	//交易状态
	public static final int TRADING_STATUS_PACKED = 1;	//待打包
	public static final int TRADING_STATUS_CONFIRMING = 2;	//确认中
	public static final int TRADING_STATUS_CONFIRMED = 3;	//已确认
	public static final int TRADING_STATUS_FAILURE = 4;	//失败
	
	//查询余额数据组装的前缀
	public static final String DATA_PREFIX = "0x70a08231000000000000000000000000";
	
	//空字符串
	public static final String EMPTY_STR = "";
	public static final String POINT_SIGNAL = ".";
	
	//默认密码
	public static final String DEFAULT_SECRET = "XTOKEN666";
	
	
	//缓存key
	public static final String SMS_TOKEN_TIME_ERROR_COUNT = "sms_token_time_error_count@";//验证码输入错误次数，时间控制
	public static final String PHONE_GET_SMS_COUNT = "phone_get_sms_count@";//手机号获取验证码次数
	public static final String PHONE_GET_WY_COUNT = "phone_get_wy_count@";//网易获取验证码次数
	public static final String PHONE_REFRESH_FREEZE = "phone_refresh_freeze@";//验证码刷新冻结
	public static final String PHONE_CHECK_ERROR_COUNT = "phone_check_error_count@";//验证码错误次数
	public static final String ES_INDEX_KEY = "es_index_key@";//elasticsearch缓存的key
	public static final String EXAM_CSRF_TOKEN_KEY = "exam_csrf_token_key@"; //测评csrf token缓存的key
	public static final String SMS_CODE_TOKEN_KEY = "sms_code_token_key@"; //短信codeToken key
	
	
	
	public static final String CHAR_SET = "";
	
	//XToken钱包用户中心注册type - 中文
	public static final int XTOKEN_PLATFORM_CODE = 5; 
	//XToken钱包用户中心注册type - 繁體
	public static final int XTOKEN_PLATFORM_TRADITIONAL_CODE = 6;
	//XToken钱包用户中心注册type - 英文
	public static final int XTOKEN_PLATFORM_ENGLISH_CODE = 7; 
	
	//XToken活动类型
	public static final int XTOKEN_ACTIVE_TYPE = 51;
	
	public static final int INT_ZERO = 0;
	
	//奖励余额变更类型，1代表注册奖励，2代表邀请奖励，3代表提现扣币
	public static final int PROFIT_REGIS = 1;
	public static final int PROFIT_INVITE = 2;
	public static final int PROFIT_WITHDRAW = 3;
	
	//系统支持币种的缓存key
	public static final String SUPPORT_COIN_KEY = "support_coin_key@";
	
	//调用成功标记
    public static final String SUCCESS_CODE = "0";
	
	public static final String TOPIC_CHECK = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef";
	
	public static final String ETH_TB_ADDRESS = "eth_tb_address@";
	
	//钱包地址是否可用
	public static final int ADD_NOT_DISABLE= 0;
	public static final int ADD_DISABLE= 1;
	
	//消息类型
	public static final String MSG_TYPE_TX = "1";
	
	//验证码发送类型
	public static final Integer SMS_TYPE_LOGIN = 1;
	public static final Integer SMS_TYPE_REGISTER = 2;
	public static final Integer SMS_TYPE_RESET_PAYMENT_CODE = 8;
	public static final Integer SMS_TYPE_WITHDRAW = 9;
	public static final Integer SMS_TYPE_RED = 10;
	public static final Integer SMS_TYPE_WITHDRAW_SUCCESS = 11;
	public static final Integer SMS_TYPE_RECHARGE_SUCCESS = 12;
	public static final Integer SMS_TYPE_WITHDRAW_FAIL = 13;
	public static final Integer SMS_TYPE_RECHARGE_FAIL = 14;
	
	//系统标识
	public static final String SYSTEM_ID = "SYSTEM";

}
